package com.im.app.model;

public class BaseQuery {
    private Integer page;
    private Integer size;
    private String orderName;
    private String orderType;

    public int getPage() {
        if (page == null){
            return 1;
        }
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        if (size == null){
            return 10;
        }
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }
}
